package org.xinjiang.tarim.travel.service;

import org.xinjiang.tarim.travel.model.PoiMdd;
import org.xinjiang.tarim.travel.model.RouteDay;
import org.xinjiang.tarim.travel.model.RouteMdd;
import org.xinjiang.tarim.travel.model.RouteWithBLOBs;
import org.xinjiang.tarim.travel.vo.Criteria;
import org.xinjiang.tarim.travel.vo.PageBean;

import java.util.List;
import java.util.Map;

public interface RouteService {
    Long insert(RouteWithBLOBs record, List<PoiMdd> poiMddList);

    RouteWithBLOBs selectByPrimaryKey(Long id);

    Map selectByRouteId(Long id);

    PageBean selectByOpenid(Criteria criteria, PageBean pageBean);

    int updateCoverImage(RouteWithBLOBs route);

    int updateByPrimaryKeySelective(RouteWithBLOBs route);

    int deleteByPrimaryKey(Long id);

    int updateForRelease(RouteWithBLOBs route, List<RouteDay> routeDays);

    int updateForRelease(RouteWithBLOBs route);

    PageBean selectRecommend(Criteria criteria, PageBean pageBean);
}
